[][src]Crate profont

The ProFont monospace programming font for use with embedded-graphics. Font data taken from the ProFont homepage.

Synopsis

Assuming display is something that implements the Drawing trait

This example is not tested
display.draw(
    ProFont24Point::render_str("Hello World")
        .with_stroke(Some(Color::Red))
        .with_fill(Some(Color::White))
        .translate(Coord::new(10, 10))
        .into_iter(),
);

For a more complete example see the example in the ssd1675 crate.

Glyph Coverage

This crate provides support for ISO/IEC 8859-1 (latin1), although do note that the font is missing a few glyphs in this range.

Enums

ProFont7PointConf
ProFont9PointConf
ProFont10PointConf
ProFont12PointConf
ProFont14PointConf
ProFont18PointConf
ProFont24PointConf

Type Definitions

ProFont7Point

The 7 point size with a character size of 5x9 pixels.

ProFont9Point

The 9 point size with a character size of 6x11 pixels.

ProFont10Point

The 10 point size with a character size of 7x13 pixels.

ProFont12Point

The 12 point size with a character size of 8x15 pixels.

ProFont14Point

The 14 point size with a character size of 10x18 pixels.

ProFont18Point

The 18 point size with a character size of 12x22 pixels.

ProFont24Point

The 24 point size with a character size of 16x30 pixels.